<?php
include_once(dirname(__FILE__).'/config.php');

$store = ARC2::getStore($arc_config);

$q = 'SELECT * WHERE {
	?vocabulary <http://desanti.org/schemas/vocabularies#hasRelation> ?relation .
	?vocabulary rdfs:label ?vocabulary_label .
	?relation rdfs:label ?relation_label .
}';

$rs = $store->query($q);
if(!$store->getErrors()){
	$rows = $rs['result']['rows'];
	print_r(json_encode($rows));
}
?>
